<?php
    class GalleryController extends BackendController
    {
        /**
    	 * @return array action filters
    	 */
    	public function filters()
    	{
    		return array(
    			'accessControl', // perform access control for CRUD operations
    			'postOnly + delete', // we only allow deletion via POST request
    		);
    	}
        
        public function accessRules() {
    		return array(
    			array('allow', // allow authenticated user to perform 'create' and 'update' actions
    				'users'=>array('@'),
    			),
    			array('deny',  // deny all users
    				'users'=>array('*'),
    			),
    		);
    	}
        
        public function actionIndex() {
            $this->render('index',array());
        }
    }
